var figure = {};
figure.waterColor = '#99FF99';
figure.siloColor = '#00CCCC';
figure.pipeColor = '#383838';
figure.ollaRefrigeranteColor = '#99CC66';
figure.sedimentationColor = '#774444';
figure.tamizColor = '#660066';
figure.molinoColor = '#660066';
figure.filtroColor = '#774444';
figure.siloSizes = {
    WIDTH: 40,
    HEIGHT_BODY: 100,
    HEIGHT_TOP: 20,
    HEIGHT_BOTTOM: 20,
    HEIGHT_TOTAL: 100 + 20 + 20
};

figure.tolvaSizes = {
    MAX_CAPACITY: 6000,
    WIDTH: 40,
    HEIGHT_BODY: 30,
    HEIGHT_TOP: 20,
    HEIGHT_BOTTOM: 10,
    HEIGHT_TOTAL: 20 + 30 + 10
};

figure.ollaSizes = {
    WIDTH: 60,
    HEIGHT: 50
};

figure.sedimentSizes = {
    WIDTH: 80,
    HEIGHT: 30
};

figure.tankFermSizes = {
    OFFSET: 20,
    WIDTH: 105,
    HEIGHT_BODY: 105,
    HEIGHT_TOP: 10,
    HEIGHT_BOTTOM: 20,
    HEIGHT_TOTAL: 105 + 10 + 20
};


figure.coolingSizes = {
    WIDTH: 35,
    HEIGHT: 15
};

figure.tamizSizes = {
    WIDTH: 80,
    HEIGHT: 13
};

figure.molinoSizes = {
    WIDTH: 25,
    HEIGHT: 25
}

figure.tankMadurSizes = {
    OFFSET: 20,
    WIDTH: 60,
    HEIGHT_BODY: 60,
    HEIGHT_TOP: 10,
    HEIGHT_BOTTOM: 10,
    HEIGHT_TOTAL: 50 + 10 + 20
};

figure.filtroSizes = {
    WIDTH_ENDS: 5,
    WIDTH_BODY: 50,
    HEIGHT_ENDS: 35,
    HEIGHT_BODY: 30
};

figure.stopAnimation = false;
figure.startAnimation = false;

figure.isOpen = function (pipeName) {
    return figure.pipesStatus[pipeName + 'Start'] && figure.pipesStatus[pipeName + 'End'];
}

figure.speed = 400;

figure.pipesStatus = {
    "pipeMaltaStart": true,
    "pipeMaltaEnd": true,
    "pipeAdjuntosStart": true,
    "pipeAdjuntosEnd": true,
    "pipeDosifAStart": false,
    "pipeDosifAEnd": false,
    "pipeDosifBStart": false,
    "pipeDosifBEnd": false,
    "pipeTamizMolidoStart": false,
    "pipeTamizMolidoEnd": false,
    "pipeTolvaStart": false,
    "pipeTolvaEnd": false,
    "pipeFiltrStart": false,
    "pipeFiltrEnd": false,
    "pipeAfechoStart": false,
    "pipeAfechoEnd": true,
    "pipeOllaCoccionStart": false,
    "pipeOllaCoccionEnd": true,
    "pipeOllasStart": false,
    "pipeOllasEnd": false,
    "pipeMezclaStart": false,
    "pipeMezclaEnd": false,
    "pipeCoolingStart": false,
    "pipeCoolingEnd": false,
    "levaduraStart": false,
    "levaduraEnd": false,
    "pipeGhostStart": false,
    "pipeGhostEnd": false,
    "pipeTankStart": false,
    "pipeTankEnd": false,
    "pipeProCoolingStart": false,
    "pipeProCoolingEnd": false,
    "pipeEtanolStart": false,
    "pipeEtanolEnd": false,
    "pipeMadStart": false,
    "pipeMadEnd": false
}